package com.ucombuy.user.service;

import com.ucombuy.common.vo.ServerResponse;
import com.ucombuy.user.pojo.User;

/**
 * Created by yaosheng on 2021/3/12.
 */
public interface IUserService {

    ServerResponse<User> login(String username, String password);

    ServerResponse<String> register(User user);

    ServerResponse<String> selectQuestion(String username);

    ServerResponse<String> checkVaild(String str, String type);

    ServerResponse<String> checkAnswer(String username,String question,String answer);

    ServerResponse<String> forgetResetPassword(String username,String passwordNew,String forgetToken);

    ServerResponse<String> resetPassword(String passwordOld,User user,String passwordNew);

    ServerResponse<User> updateInformation(User user);

    ServerResponse<User> getInformation(Integer userId);

    ServerResponse<User> checkAdminRole(User user);
}
